home *** CD-ROM | disk | FTP | other *** search
/ APDL Other Worlds / APDL Other Worlds Collection.iso / SF3000 / Extras / CBlibrary / h / LoadSaveMT < prev    next >
Encoding:
Text File  |  2003-09-11  |  1.5 KB  |  42 lines

  1. /*
  2.  * CBLibrary - LoadSaveMT
  3.  * Copyright (C) 2003  Chris Bazley
  4.  *
  5.  * This library is free software; you can redistribute it and/or
  6.  * modify it under the terms of the GNU Lesser General Public
  7.  * License as published by the Free Software Foundation; either
  8.  * version 2.1 of the License, or (at your option) any later version.
  9.  *
  10.  * This library is distributed in the hope that it will be useful,
  11.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  13.  * Lesser General Public License for more details.
  14.  *
  15.  * You should have received a copy of the GNU Lesser General Public
  16.  * License along with this library; if not, write to the Free Software
  17.  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  18.  */
  19.  
  20. /* 
  21.   Multi-tasking file loading/saving
  22.   All applications using this component need the following messages:
  23.   OpenInFail, ReadFail, OpenOutFail, WriteFail
  24. */
  25.  
  26. #ifndef LoadSaveMT_h
  27. #define LoadSaveMT_h
  28.  
  29. #include <stdbool.h> 
  30. #include <stdio.h>
  31. #include "kernel.h"
  32. #include "flex.h"
  33.  
  34. extern unsigned int get_loadsave_perc(FILE ***handle);
  35.  
  36. extern _kernel_oserror *load_fileM(const char *filepath, flex_ptr buffer_anchor, const volatile bool *timeup, FILE ***handle, bool sprite);
  37.  
  38. /* Save specified memory to file, and set filetype */ 
  39. extern _kernel_oserror *save_fileM(const char *filepath, int filetype, flex_ptr buffer_anchor, const volatile bool *timeup, FILE ***handle, bool sprite);
  40.  
  41. #endif
  42.